package com.elsa.smart_buffet.service.impl;

import com.elsa.smart_buffet.mapper.UserPersonalMapper;
import com.elsa.smart_buffet.pojo.ResultBox.CallBackMessage;
import com.elsa.smart_buffet.pojo.ResultBox.ResponseResult;
import com.elsa.smart_buffet.service.UserPersonalService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @ClassName : UserPersonalServiceImpl  //类名
 * @Author : elsa //作者
 */
@Service
@Transactional
public class UserPersonalServiceImpl implements UserPersonalService {

    @Autowired
    private UserPersonalMapper userPersonalMapper;

    @Override
    public ResponseResult getUserPersonalByTime(String date) {
        return new ResponseResult(CallBackMessage.SUCCESS, userPersonalMapper.getUserPersonalByTime(date));
    }

}
